﻿using System.Configuration;

namespace SocialFront.Providers
{
    public class SocialFrontProviderConfiguration : ConfigurationSection
    {
        [ConfigurationProperty("providers", IsRequired = true)]
        public ProviderSettingsCollection Providers
        {
            get
            {
                return (ProviderSettingsCollection)base["providers"];
            }
            set
            {
                base["providers"] = value;
            }
        }

        [ConfigurationProperty("defaultProvider", DefaultValue = "Umbraco", IsRequired = true)]
        public string Default
        {
            get
            {
                return (string)base["defaultProvider"];
            }
            set
            {
                base["defaultProvider"] = value;
            }
        }

        [ConfigurationProperty("name", IsRequired = true)]
        public string Name
        {
            get { return (string)base["name"]; }
            set { base["name"] = value; }
        }
    }
}
